//
// Created by liushuai on 19-3-16.
// ctest测试不通过
#include "choose_sort.h"
#include <bits/stdc++.h>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
using namespace std;
BOOST_AUTO_TEST_SUITE(s_choose_sort)
    BOOST_AUTO_TEST_CASE(t_choose_sort){
        vector<int>a = {1,6,4,9,3,8};
        vector<int>b = a;
        sort(a.begin(),a.end());
        b = choose_sort(b);
        BOOST_CHECK_EQUAL(a,choose_sort(b));
        BOOST_CHECK_EQUAL(5,5);
        BOOST_CHECK_EQUAL(4,5);
    }
BOOST_AUTO_TEST_SUITE_END()
